package com.peng.dian.mapper;

import com.peng.dian.pojo.Employee1;
import com.peng.dian.pojo.Employee2;
import org.apache.ibatis.annotations.Mapper;
import org.springframework.stereotype.Repository;

import java.util.List;
@Mapper
@Repository
public interface EmployeeMapper {
    List<Employee1> queryEmployee();

    Employee1 queryEmployeeById(int id);

    int addEmployee(Employee1 employee1);

    int updateEmployee(Employee1 employee1);

    int deleteEmployee(int id);

    List<Employee2> queryEmployee2();

    /*通过员工的姓名查找这个员工的信息*/
    Employee2 queryEmployeeName(String name);

}

